package com.ruoyi.basicsystem.service;

import java.util.List;

import com.alibaba.fastjson.JSONArray;
import com.ruoyi.basicsystem.domain.ZnDepot;
import com.ruoyi.common.core.domain.AjaxResult;

/**
 * 仓库Service接口
 * 
 * @author ruoyi
 * @date 2021-12-28
 */
public interface IZnDepotService 
{
    /**
     * 查询仓库
     * 
     * @param id 仓库主键
     * @return 仓库
     */
    public ZnDepot selectZnDepotById(Long id);

    /**
     * 查询仓库列表
     * 
     * @param znDepot 仓库
     * @return 仓库集合
     */
    public List<ZnDepot> selectZnDepotList(ZnDepot znDepot);

    /**
     * 新增仓库
     * 
     * @param znDepot 仓库
     * @return 结果
     */
    public int insertZnDepot(ZnDepot znDepot);

    /**
     * 修改仓库
     * 
     * @param znDepot 仓库
     * @return 结果
     */
    public int updateZnDepot(ZnDepot znDepot);

    /**
     * 批量删除仓库
     * 
     * @param ids 需要删除的仓库主键集合
     * @return 结果
     */
    public int deleteZnDepotByIds(Long[] ids);

    /**
     * 删除仓库信息
     * 
     * @param id 仓库主键
     * @return 结果
     */
    public int deleteZnDepotById(Long id);

    public AjaxResult handleIsDefault(Long id);

    public  JSONArray findDepotByCurrentUser();

    List<ZnDepot> findDepotByCurrentUser(ZnDepot znDepot);

    List<ZnDepot> selectZnDepotSelectList(ZnDepot znDepot);
}
